/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.baseConfig.mapper;

import com.koron.workflow.common.bean.StaffBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffMapper {

    /**
     * 根据部门id查询用户列表
     * @param departmentCode
     * @return
     */
    List<StaffBean> queryByDepartmentCode(@Param("departmentCode") String departmentCode);

    List<StaffBean> queryForList(@Param("departmentCode") String departmentCode,@Param("name") String name,
                                 @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int countForList(@Param("departmentCode") String departmentCode, @Param("name") String name);

    StaffBean queryByCode(@Param("code") String code);
    
    StaffBean queryByAccount(String account);

    StaffBean queryForObject(@Param("id") String id);
}
